/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eu.xibit.jsimpleportforward;

import java.io.Serializable;

/**
 *
 * @author David
 */
public class Forward implements Serializable {
	
	private int fromPort;
	private int toPort;

	public Forward() {
	}

	public Forward(int fromPort, int toPort) {
		this.fromPort = fromPort;
		this.toPort = toPort;
	}

	public int getFromPort() {
		return fromPort;
	}

	public void setFromPort(int fromPort) {
		this.fromPort = fromPort;
	}

	public int getToPort() {
		return toPort;
	}

	public void setToPort(int toPort) {
		this.toPort = toPort;
	}

	@Override
	public String toString() {
		return "" + fromPort + " -> " + toPort;
	}
	
}
